//
//  NetBaseRequest.h
//  ProjectPublic
//
//  Created by ac-hu on 2018/7/6.
//  Copyright © 2018年 ac hu. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^succeedNetBlock)(id result);
typedef void (^failNetBlock)(NSString *errorStr);

@interface NetBaseRequest : NSObject

+(void)get:(NSString *)urlStr dic:(NSDictionary *)dic succeed:(succeedNetBlock)succeedBlock fail:(failNetBlock)failBlock;

+(void)post:(NSString *)urlStr dic:(NSDictionary *)dic succeed:(succeedNetBlock)succeedBlock fail:(failNetBlock)failBlock;

+(void)upload:(NSString *)urlStr dic:(NSDictionary *)dic images:(NSArray *)images succeed:(succeedNetBlock)succeedBlock fail:(failNetBlock)failBlock;

@end
